package datatype

object NothingDemo {
  def main(args: Array[String]): Unit = {
    test
  }

  def test: Nothing = {
    // 抛出一个异常
    throw new Exception()
  }
}
